<template>
  <div>
    <div class="special">
      <div class="special_box">
        <div
          v-for="(item, index) in special"
          :key="index"
          class="special_box_swiper"
        >
          <div class="special_box_swiper_box">
            <img :src="item.pic" alt="" />
          </div>
          <div class="special_box_title_box">
            <p class="special_box_title_box_p">{{ item.title }}</p>
            <div class="van-multi-ellipsis--l2">
              {{ item.descript }}
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    special: {
      type: Array,
      required: true,
    },
  },
};
</script>

<style scoped>
.special {
  width: 100%;
  height: 240px;
  background: white;
  overflow: scroll;
}
.special_box {
  width: 440%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.special_box_swiper {
  width: 100%;
  margin-left: 10px;
}
.special_box_swiper_box {
  width: 100%;
  height: 180px;
}
.special_box_swiper_box img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
}
.special_box_title_box {
  width: 100%;
  height: 60px;
}
.special_box_title_box_p {
  font-size: 10px;
  color: pink;
  margin-bottom:10px;
}
.van-multi-ellipsis--l2 {
  font-size: 10px;
  color: gray;
}
</style>